import service from "@/request/request.js"
// 获取宠物信息列表
export const GetFosterPetMessageService = (pageNum, pageSize,keyword) => {
    return service({
        method: 'GET',
        url: '/admincharge/fostermsg/',
        headers: {
            'Authorization': 'Bearer'+" " + localStorage.getItem('admin_token')
        },
        params: {
            keyword:keyword,
            currentPage: pageNum,
            pageSize: pageSize
        }
    })
}

// 添加表单的数据
export const addFosterService = (form) => {
    return service({
        method: 'POST',
        url: '/admincharge/fostermsg/',
        data: form
    })
}

// 编辑
export const editFosterMessageService = (MessageForm) =>{
    return service({
        method:'POST',
        url:'/admincharge/fostermsg/edit/',
        data:MessageForm
    })
}

// 删除一份宠物信息数据
export const deleteFosterNoticeUrlService = (Id) => {
    return service({
        method: 'POST',
        url: '/admincharge/fostermsg/' + Id + '/',
    })
}

// 批量删除
export const deleteFosterNoticeUrlsService = (Ids) => {
    return service({
        method: 'POST',
        url: '/admincharge/fostermsg/deletemany/',
        data: Ids
    })
}